import request from '@/utils/request'

// 查询基本资料列表
export function listBasestaff(query) {
  return request({
    url: '/base/basestaff/list',
    method: 'get',
    params: query
  })
}

// 查询基本资料详细
export function getBasestaff(id) {
  return request({
    url: '/base/basestaff/' + id,
    method: 'get'
  })
}

// 新增基本资料
export function addBasestaff(data) {
  return request({
    url: '/base/basestaff',
    method: 'post',
    data: data
  })
}

// 修改基本资料
export function updateBasestaff(data) {
  return request({
    url: '/base/basestaff',
    method: 'put',
    data: data
  })
}

// 删除基本资料
export function delBasestaff(id) {
  return request({
    url: '/base/basestaff/' + id,
    method: 'delete'
  })
}

export function getsexlList() {
  return request({
    url: '/base/basestaff/getsexlist',
    method: 'get',
  })
}
